<template>
	<div class="management-container">
		<router-view />
	</div>
</template>

<script>
	import {
		getPermission
	} from '@/api/industry'
	export default {
		name: 'Management',
		data() {
			return {
		
			};
		},
		watch: {
			// 监听路由变化
			$route(to, from) {
				let data = {
					userName:localStorage.getItem('username')
				}
				getPermission(data).then(res=>{
					console.log(res.data)
					localStorage.setItem('userList',JSON.stringify(res.data))
				})
			},
		},
	}
</script>

<style scoped>
	.management-container {
		width: 100%;
		height: 100%;
	}
</style>